export default {
  /**
   * 稽查督导涉及的接口-----------------------------------------------------------------------------
   *
   */

  /**
   * 11010001---稽查督导列表
   *
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {number}  inspectTime           稽查时间 [开始，结束] 数组
   * @param  {string}  districtId            安装区域
   * @param  {string}  pointId               安装点位
   * @param  {string}  inspectProject        项目
   *
   */
  "POST /inspect/inspecinfo/list": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            inspectId:"1",
            inspectTime:1515554892000,
            districtName:"区域名称",
            pointName:"点位名称",
            inspectProject: "01",
            rectifyMan: "李四",
            creatorName: "张三",
            status: "01",
          },
          {
            inspectId:"2",
            inspectTime:1515554892000,
            districtName:"区域名称",
            pointName:"点位名称",
            inspectProject: "02",
            rectifyMan: "李四",
            creatorName: "张三",
            status: "02",
          }
        ]
      }
    });
  },


  /**
   * 11010003---发现问题
   * @param  {string}  districtId            安装区域
   * @param  {string}  pointId               安装点位
   * @param  {string}  inspectProject        项目
   * @param  {string}  problemDesc           问题描述
   * @param  {string}  maintenanceId         维保单位
   * @param  {string}  rectifyMan            整改人
   * @param  {string}  handleTime            处理时限
   * @param  {array}   inspectPhotoArray     照片 数组支持多张
   */
  "POST /inspect/inspecinfo/save": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 11010004---问题修改（仅在待办状态 可以修改）
   * @param  {string}  inspectId             稽查ID
   * @param  {string}  districtId            安装区域
   * @param  {string}  pointId               安装点位
   * @param  {string}  inspectProject        项目
   * @param  {string}  problemDesc           问题描述
   * @param  {string}  maintenanceId         维保单位
   * @param  {string}  rectifyMan            整改人
   * @param  {string}  handleTime            处理时限
   * @param  {array}   inspectPhotoArray     照片 数组支持多张
   */
  "POST /inspect/inspecinfo/update": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 11010005---稽查详情详情
   * @param  {string}  inspectId              稽查ID
   *
   *
   */
  "POST /inspect/inspecinfo/info": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        inspectId:"1",
        districtId:"6",
        districtName:"区域名称",
        pointId: "1",
        pointName:"点位名称",
        inspectProject:"01",
        problemDesc:"问题描述...",
        maintenanceId:"1",
        maintenanceName:"维保单位",
        rectifyMan:"1",
        rectifyManName:"整改人",
        handleTime:10,
        creator:"创建人",
        inspectTime:1515554892000,
        status: "01",
      },
      inspectPhotoArray:[{
        uid: 'I100000000113',
        name: '211841154.jpg',
        url: 'http://www.qqzhi.com/uploadpic/2015-02-02/211841154.jpg',
      },{
        uid: 'I100000000114',
        name: '211841154.jpg',
        url: 'http://www.qqzhi.com/uploadpic/2015-02-02/211841154.jpg',
      }],
    });
  },


  /**
   * 11010006---导出
   * @param  {string}  inspectId              稽查ID
   */
  "POST /11010006": (req, res)=> {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },



  /**
   * 11010007---处理进程(时间倒序排)
   * @param  {string}  inspectId              稽查ID
   */
  "POST /inspect/inspecprocess/queryProcessListByInspectId":(req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        list:[
        {
          inspectStatus:"04",
          processId:"5",
          rectifyTime:1515554892000,
          rectifyMan:"整改人",
          processDesc:"整改描述",
          processPhoto:[{
            uid: 'I100000000113',
            name: '211841154.jpg',
            url: 'http://www.qqzhi.com/uploadpic/2015-02-02/211841154.jpg',
          },{
            uid: 'I100000000114',
            name: '211841154.jpg',
            url: 'http://www.qqzhi.com/uploadpic/2015-02-02/211841154.jpg',
          }],
        },
        {
          inspectStatus:"03", // 状态：03----审核中 -- 最新的那条要根据审核权限判断是不是有
          processId:"6",
          rectifyTime:1515554892000,
          rectifyMan:"审核人",
          processDesc:"审核结果",
          handleResult:null,   //如果 是审核人，改条出现的时候，为null，或该字段没有
        },
        {
          inspectStatus:"02",
          processId:"3",
          rectifyTime:1515554892000,
          rectifyMan:"整改人",
          processDesc:"整改描述",
          processPhoto:[{
            uid: 'I100000000113',
            name: '211841154.jpg',
            url: 'http://www.qqzhi.com/uploadpic/2015-02-02/211841154.jpg',
          },{
            uid: 'I100000000114',
            name: '211841154.jpg',
            url: 'http://www.qqzhi.com/uploadpic/2015-02-02/211841154.jpg',
          }],
        },
        {
          inspectStatus:"03",
          processId:"2",
          rectifyTime:1515554892000,
          rectifyMan:"审核人",
          processDesc:"审核结果",
          handleResult:"0",
        },{
          inspectStatus:"02",
          processId:"7",
          rectifyTime:1515554892000,
          rectifyMan:"整改人",
          processDesc:"整改描述",
          processPhoto:[{
            uid: 'I100000000113',
            name: '211841154.jpg',
            url: 'http://www.qqzhi.com/uploadpic/2015-02-02/211841154.jpg',
          },{
            uid: 'I100000000114',
            name: '211841154.jpg',
            url: 'http://www.qqzhi.com/uploadpic/2015-02-02/211841154.jpg',
          }],
        }]

      }
    });
  },




  /**
   * 11010008---审核
   * @param  {string}  inspectId     查ID
   * @param  {string}  handleResult  审核结果 0 不通过 1通过
   * @param  {string}  processDesc     审核内容
   */
  "POST /inspect/inspecinfo/check": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },




};
